package net.sevear.chaos.event.p2p
{
	import flash.events.Event;

	public class P2pEvent extends Event
	{
//		public static const CONNECT_SUCCESSFUL		:String = "Connect p2p successfully";
//		public static const CONNECT_FAILED			:String = "Connect p2p failed";
		public static const START_SITE_SUCCESSFUL	:String = "Start site successfully";
		public static const START_SITE_FAILED		:String = "Start site failed";
		public static const CLOSED_SITE				:String = "Close Site";
		
		public static const CONNECT_SITE_SUCCESSFUL	:String = "Connect site successfully";
		public static const CONNECT_SITE_FAILED		:String = "Connect site failed";
		public static const CONNECT_SITE_TIMEOUT	:String = "Connect site timeout";
		public static const SITE_STARTUP			:String = "Site Startup";
		public static const SITE_CLOSED				:String = "Site closed";
		
		public static const NEW_LISTENER_ADDED		:String = "New listener added";
		public static const ADD_LISTENER_FAILED		:String = "Add listener as neighbor failed";
		public static const LISTENER_DISCONNECTED	:String = "A listener disconected";
		public static const LISTENER_LIKE_TRACK		:String = "Listener like track";
		
		public static const NEW_TRACK_ARRIVED		:String = "New track arrived";
		
		public static const NEW_OFFLINE_TRACKLIST_ARRIVED:String = "New Offline tracklist arrived";
		
		public static const FRIEND_SITE_ON_AIR		:String = "Friend Site is On air";
		public static const FRIEND_SITE_NOT_ON_AIR	:String = "Friend Site is Not on Air";
		
		private var _data:Object;
		public function P2pEvent(type:String,data:Object = null)
		{
			_data = data;
			super(type,false,false);
		}
		
		public function get data():Object{
			return _data;
		}
	}
}